//
//  TimeView.m
//  TryShopping
//
//  Created by panquanReabam.com on 16/8/30.
//  Copyright © 2016年 RuiBen. All rights reserved.
//

#import "TimeView.h"

@interface TimeView()<UITextFieldDelegate>
@end

@implementation TimeView

{
}
//@synthesize mDelegate;
- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        UILabel*bookingDate=[[UILabel alloc]initWithFrame:CGRectMake(15, 0, 80, 50)];
        bookingDate.text=@"预约日期";
        bookingDate.textColor=[UIColor blackColor];
        bookingDate.font=[UIFont systemFontOfSize:15];
        [self addSubview:bookingDate];
        
       _bookingDateLabel=[[UILabel alloc]initWithFrame:CGRectMake(ScreenWidth-150, 0, 135, 50)];
        _bookingDateLabel.text=@"";
        _bookingDateLabel.textColor=qianheiColor;
        _bookingDateLabel.textAlignment=NSTextAlignmentRight;
        _bookingDateLabel.font=[UIFont systemFontOfSize:15];
        [self addSubview:_bookingDateLabel];
        
        UILabel*bookingTime=[[UILabel alloc]initWithFrame:CGRectMake(15, 50, 80, 50)];
        bookingTime.text=@"预约时间";
        bookingTime.textColor=[UIColor blackColor];
        bookingTime.font=[UIFont systemFontOfSize:15];
        [self addSubview:bookingTime];
        
        _bookingTimeLabel=[[UILabel alloc]initWithFrame:CGRectMake(ScreenWidth-150, 50, 135, 50)];
        _bookingTimeLabel.text=@"";
        _bookingTimeLabel.textAlignment=NSTextAlignmentRight;
        _bookingTimeLabel.textColor=qianheiColor;
        _bookingTimeLabel.font=[UIFont systemFontOfSize:15];
        [self addSubview:_bookingTimeLabel];
        
        
        
        UILabel*tureDisposeDate=[[UILabel alloc]initWithFrame:CGRectMake(15, 100, 100, 50)];
        tureDisposeDate.text=@"确认到诊日期";
        tureDisposeDate.textColor=[UIColor blackColor];
        tureDisposeDate.font=[UIFont systemFontOfSize:15];
        [self addSubview:tureDisposeDate];
        
        _tureDisposeDateTextFied=[[UITextField alloc]initWithFrame:CGRectMake(ScreenWidth-160, 100,160,  50)];
        _tureDisposeDateTextFied.borderStyle = UITextBorderStyleNone;
        _tureDisposeDateTextFied.font = [UIFont systemFontOfSize: contenfot];
        _tureDisposeDateTextFied.textColor=luseColor;
        _tureDisposeDateTextFied.tag=5;
        _tureDisposeDateTextFied.placeholder = @""; //默认显示的字
        [self addSubview:_tureDisposeDateTextFied];

        UIButton*btn=[[UIButton alloc]init];
        btn.frame=CGRectMake(ScreenWidth-40, 100+8, 33, 33);
        btn.userInteractionEnabled=NO;
        [btn setImage:[UIImage imageNamed:@"shouqi"] forState:UIControlStateNormal];
        [self addSubview:btn];
        
       
        UILabel*tureDisposeTime=[[UILabel alloc]initWithFrame:CGRectMake(15, 150, 100, 50)];
        tureDisposeTime.text=@"确认到诊时间";
        tureDisposeTime.textColor=[UIColor blackColor];
        tureDisposeTime.font=[UIFont systemFontOfSize:15];
        [self addSubview:tureDisposeTime];
        
        UIButton*btn1=[[UIButton alloc]init];
        btn1.frame=CGRectMake(ScreenWidth-150, 150+8, 33, 33);
        btn1.userInteractionEnabled=NO;
        [btn1 setImage:[UIImage imageNamed:@"shouqi"] forState:UIControlStateNormal];
        [self addSubview:btn1];

        _tureDisposeTimeTextFied=[[UITextField alloc]initWithFrame:CGRectMake(ScreenWidth-250, 150,160,  50)];
        _tureDisposeTimeTextFied.borderStyle = UITextBorderStyleNone;
        _tureDisposeTimeTextFied.font = [UIFont systemFontOfSize: contenfot];
        _tureDisposeTimeTextFied.textColor=luseColor;
        _tureDisposeTimeTextFied.tag=5;
        _tureDisposeTimeTextFied.placeholder = @""; //默认显示的字
        [self addSubview:_tureDisposeTimeTextFied];

        
        UILabel*fu=[[UILabel alloc]initWithFrame:CGRectMake(ScreenWidth-107.2, 150, 15, 50)];
        fu.text=@"~";
        fu.textColor=[UIColor blackColor];
        fu.font=[UIFont systemFontOfSize:15];
        [self addSubview:fu];

        _tureDisposeTimeTextFied1=[[UITextField alloc]initWithFrame:CGRectMake(ScreenWidth-120, 150,120,  50)];
        _tureDisposeTimeTextFied1.borderStyle = UITextBorderStyleNone;
        _tureDisposeTimeTextFied1.font = [UIFont systemFontOfSize: contenfot];
        _tureDisposeTimeTextFied1.textColor=luseColor;
        _tureDisposeTimeTextFied1.tag=5;
        _tureDisposeTimeTextFied1.placeholder = @""; //默认显示的字
        [self addSubview:_tureDisposeTimeTextFied1];
        
        UIButton*btn2=[[UIButton alloc]init];
        btn2.frame=CGRectMake(ScreenWidth-40, 150+8, 33, 33);
        btn2.userInteractionEnabled=NO;
        [btn2 setImage:[UIImage imageNamed:@"shouqi"] forState:UIControlStateNormal];
        [self addSubview:btn2];
        
        
        
        UILabel*line=[[UILabel alloc]initWithFrame:CGRectMake(10, 50, ScreenWidth-20, 0.45)];
        line.backgroundColor=qianhuiColor;
        [self addSubview:line];
        UILabel*line1=[[UILabel alloc]initWithFrame:CGRectMake(10, 100, ScreenWidth-20, 0.45)];
        line1.backgroundColor=qianhuiColor;
        [self addSubview:line1];
        UILabel*line2=[[UILabel alloc]initWithFrame:CGRectMake(10, 150, ScreenWidth-20, 0.45)];
        line2.backgroundColor=qianhuiColor;
        [self addSubview:line2];
        UILabel*line3=[[UILabel alloc]initWithFrame:CGRectMake(0, 200, ScreenWidth, 0.45)];
        line3.backgroundColor=qianhuiColor;
        [self addSubview:line3];
        
    }
    return self;
}
//自定义






@end
